<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>湿地生态系统3D互动模型</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            overflow: hidden;
            font-family: 'Arial', sans-serif;
            background: #000;
        }
        
        #canvas-container {
            position: relative;
            width: 100vw;
            height: 100vh;
        }
        
        #info-panel {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 20px;
            border-radius: 10px;
            max-width: 300px;
            display: none;
            z-index: 1000;
        }
        
        #info-panel h3 {
            margin-top: 0;
            color: #4CAF50;
        }
        
        #food-chain {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            display: none;
            z-index: 1000;
        }
        
        #food-chain .arrow {
            font-size: 24px;
            margin: 0 10px;
            color: #4CAF50;
        }
        
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
        }
        
        #loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 24px;
        }
    </style>
</head>
<body>
    <div id="canvas-container">
        <div id="loading">加载中...</div>
    </div>
    
    <div id="info-panel">
        <button class="close-btn" onclick="closeInfoPanel()">×</button>
        <h3 id="info-title">信息</h3>
        <p id="info-content">内容加载中...</p>
    </div>
    
    <div id="food-chain">
        <button class="close-btn" onclick="closeFoodChain()">×</button>
        <h3>食物链演示</h3>
        <div id="chain-content">
            <span style="color: #4CAF50;">植物</span>
            <span class="arrow">→</span>
            <span style="color: #FF9800;">虾</span>
            <span class="arrow">→</span>
            <span style="color: #2196F3;">鱼</span>
            <span class="arrow">→</span>
            <span style="color: #F44336;">白鹭</span>
        </div>
    </div>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r160/three.min.js"></script>
    <script src="main.js"></script>
</body>
</html>
